<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all"/>
    <link rel="stylesheet" href="${base}/static/css/main.css" media="all"/>
    <link rel="icon" href="http://ow9lg82yy.bkt.clouddn.com/24f5c360-485d-4a6d-9468-2a61c353cf37.ico">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all">
    <link rel="stylesheet" href="/static/css/user.css" media="all">
    <link rel="stylesheet" href="/static/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
</head>
<style>

    .div-b {
        float: left;
        border: 1px
    }

    #tab-box {
        display: block;
        padding-left: 30px;

    }

    .tab-li {
        display: inline-block;
        padding: 20px;
        width: 100px;
        margin-left: 20px;
        line-height: 200%;
        border: 1px solid #fff;
    }

    .tab-li span {
        display: block;
    }

    .tab-li.cur, .tab-li:hover {
        border-color: #ffbb5d;
    }

    .tab-li {
        position: relative;
    }

    .tab-li em {
        display: none;
    }

    .tab-li:hover em, .tab-li.cur em {
        display: block;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 100;
        width: 0;
        height: 0;
        border-bottom: 10px solid #1C82D5;
        border-left: 10px solid #fff
    }

    .div-x:hover {
        background-color: #f3fafe
    }
</style>
</head>
<body class="childrenBody">
<div>
    <div id="survey-box">
    </div>
    <div class=" div-a" id="tab-box"></div>
    <div id="main" style="width: 1200px;height: 400px;">

    </div>
</div>
<div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalSysCount"></span>
                    <cite>货币配发总量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todaySysCount"></span>
                    <cite>今日货币配发总量</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalSleepCoinDividends"></span>
                    <cite>累计股东休眠币配发量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todaySleepCoinDividends"></span>
                    <cite>今日股东休眠币配发量</cite>
                    <#--<span >今日股东休眠币配发量</span>-->
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalAliveCoinDividends"></span>
                    <cite>累计股东活币配发量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayAliveCoinDividends"></span>
                    <cite>今日股东活币配发量</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalAliveRelease"></span>
                    <cite>累计股东活币释放量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayAliveRelease"></span>
                    <cite>今日股东活币释放量</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalSleepRelease"></span>
                    <cite>累计股东休眠币释放量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todaySleppRelease"></span>
                    <cite>今日股东休眠币释放量</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalMemberRelease"></span>
                    <cite>累计用户活币释放量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayMemberRelease"></span>
                    <cite>今日用户活币释放量</cite>
                </div>
            </a>
        </div>
    </div>

    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalHangBuyOrder"></span>
                    <cite>累计用户挂买订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayHangBuyOrder"></span>
                    <cite>今日挂买订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalHangBuyCount"></span>
                    <cite>累计挂买量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayHangBuyCount"></span>
                    <cite>今日挂买总量</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalHangSaleOrder"></span>
                    <cite>累计用户挂卖订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayHangSaleOrder"></span>
                    <cite>今日挂卖订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalHangSaleCount"></span>
                    <cite>累计挂卖总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayHangSaleCount"></span>
                    <cite>今日挂卖总额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalDealOrder"></span>
                    <cite>累计成交订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayDealOrder"></span>
                    <cite>今日成交订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalDealCount"></span>
                    <cite>累计成交总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayDealCount"></span>
                    <cite>今日成交总额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalBackOrder"></span>
                    <cite>累计回购订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayBackOrder"></span>
                    <cite>今日回购订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalBackCount"></span>
                    <cite>累计回购总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayBackCount"></span>
                    <cite>今日回购总额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalShopOrder"></span>
                    <cite>累计商城交易订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayShopOder"></span>
                    <cite>今日商城交易订单量</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalShopCount"></span>
                    <cite>累计商城交易总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayShopCount"></span>
                    <cite>今日商城交易金额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalSealupCount"></span>
                    <cite>累计查封用户数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todaySealupCount"></span>
                    <cite>今日查封用户数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalFrozenCount"></span>
                    <cite>累计冻结用户数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="todayFrozenCount"></span>
                    <cite>今日冻结用户数</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="noDealThreeMonthCount"></span>
                    <cite>近3个月无交易用户数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="noDealOneMonthCount"></span>
                    <cite>近1个月无交易用户数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="noDealSevenDayCount"></span>
                    <cite>近7天无交易用户数</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalRegisterCount"></span>
                    <cite>累计注册会员数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="activedCount"></span>
                    <cite>已激活注册会员数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #FCBB50">
                    <i class="layui-icon" data-icon="&#xe65e">&#xe65e</i>
                </div>
                <div class="panel_word newMessage">
                    <span id="unactiveCount"></span>
                    <cite>未激活注册会员数</cite>
                </div>
            </a>
        </div>
    </div>
</div>



</body>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/tools.js"></script>
<script type="text/javascript" src="/static/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/static/js/CodeConst.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>
<script src="/static/js/dealParam.js"></script>
<script>
    function getStatistical() {
        var statistical;
        $.ajax({
            async: false,
            url: '/back/survey/survey/list',
            type: 'get',
            success: function (baseDto) {
                dealBaseDto(baseDto, function (baseDto) {
                    statistical = baseDto.data;
                })
            }
        });
        return statistical;
    }

    var statistical = getStatistical();

    function loadSurveyData(statistical) {
        console.log(statistical);
        console.log(statistical.totalSysCount);
        // 货币配发总量、今日货币配发总量
        var totalSysCountSpan = $("#totalSysCount");
        totalSysCountSpan.html(statistical.totalSysCount);
        // $("#totalSysCount").html("shisdsdsd");
        // document.getElementById('totalSysCount').innerText= statistical.totalSysCount;
        var todaySysCountDiv = $("#todaySysCount");
        todaySysCountDiv.html(statistical.todaySysCount);

        //    累计股东休眠币配发量、今日股东休眠币配发量
        var totalSleepCoinDividendsDiv = $("#totalSleepCoinDividends");
        totalSleepCoinDividendsDiv.html(statistical.totalSleepCoinDividends);
        var todaySleepCoinDividendsDiv = $("#todaySleepCoinDividends");
        todaySleepCoinDividendsDiv.html(statistical.todaySleepCoinDividends);

        //    累计股东活币配发量、今日股东活币配发量
        var totalAliveCoinDividendsDiv = $("#totalAliveCoinDividends");
        totalAliveCoinDividendsDiv.html(statistical.totalAliveCoinDividends);
        var todayAliveCoinDividendsDiv = $("#todayAliveCoinDividends");
        todayAliveCoinDividendsDiv.html(statistical.todayAliveCoinDividends);

        //4.累计股东活币释放量、今日股东活币释放量
        var totalAliveReleaseDiv = $("#totalAliveRelease");
        totalAliveReleaseDiv.html(statistical.totalAliveRelease);
        var todayAliveReleaseDiv = $("#todayAliveRelease");
        todayAliveReleaseDiv.html(statistical.todayAliveRelease);


        //累计股东休眠币释放量、今日股东休眠币释放量
        var totalSleepReleaseDiv = $("#totalSleepRelease");
        totalSleepReleaseDiv.html(statistical.totalSleepRelease);
        var todaySleppReleaseDiv = $("#todaySleppRelease");
        todaySleppReleaseDiv.html(statistical.todaySleppRelease);

        //累计用户活币释放量、今日用户活币释放量
        var totalMemberReleaseDiv = $("#totalMemberRelease");
        totalMemberReleaseDiv.html(statistical.totalMemberRelease);
        var todayMemberReleaseDiv = $("#todayMemberRelease");
        todayMemberReleaseDiv.html(statistical.todayMemberRelease);
    }

    loadSurveyData(statistical);

    var myChart = echarts.init(document.getElementById('main'));
    var coinTypeTest = getCoinTypeList();
    console.log(coinTypeTest);
    var coinTypeTestList = "";
    $.each(coinTypeTest, function (index, coinType) {
        coinGain = coinType.coinGain * 100;
        console.log(coinGain);
        coinTypeTestList += "    <div  class=\"tab-li div-x \">\n" +
            "        <input type='hidden' value='" + coinType.id + "'><span>" + coinType.name + "</span><em></em>\n" +
            "        <span style='font-size: 25px'>    " + coinType.newestPrice + "</span>\n" +
            "        <span >涨幅:" + coinGain + "%</span>\n" +
            "    </div>";
        if (index == 0) {
            coinTypeId = coinType.id;
            getChart(coinTypeId);
        }
    });
    console.log(coinTypeTestList);

    $("#tab-box").html(coinTypeTestList);

    function getChart(id) {
        var xData = [];
        var yData = [];
        $.ajax({
            url: '/back/survey/price/priceList',
            type: 'GET',
            dataType: 'json',
            data: {
                coinTypeId: id
            },
            success: function (baseDto) {
                console.log(baseDto);
                for (var i = 0, len = baseDto.data.length; i < len; i++) {
                    yData.push(baseDto.data[i].openPrice);
                    xData.push(baseDto.data[i].createDate);
                }
            },
            complete: function () {
                option = {
                    title:{
                        text:"                                                                                货币历史价格折线图",
                    },
                    xAxis: {
                        name:'时间',
                        type: 'category',
                        data: xData
                    },
                    yAxis: {
                        name:'公价',
                        type: 'value'
                    },
                    tooltip: {
                        trigger: 'axis'
                    },
                    series: [{
                        name: '公价',
                        data: yData,
                        type: 'line',
                        barWidth: 50
                    }]
                };
                myChart.setOption(option);
            }
        });
    }

    $('.tab-li').each(function () {
        $(this).click(function () {
            $(this).addClass("cur").siblings(".tab-li").removeClass("cur");
            var id = $(this).find("input").val();
            getChart(id);
        })

    });

</script>
<script>
    function getStatistical() {
        var statistical;
        $.ajax({
            async: false,
            url: '/back/survey/survey/list',
            type: 'get',
            success: function (baseDto) {
                dealBaseDto(baseDto, function (baseDto) {
                    statistical = baseDto.data;
                })
            }
        });
        return statistical;
    }

    var statistical = getStatistical();

    function loadSurveyData(statistical) {
        console.log(statistical);
//    货币配发总量、今日货币配发总量
        var totalSysCountDiv = $("#totalSysCount");
        totalSysCountDiv.html(statistical.totalSysCount);
        var todaySysCountDiv = $("#todaySysCount");
        todaySysCountDiv.html(statistical.todaySysCount);

//    累计股东休眠币配发量、今日股东休眠币配发量
        var totalSleepCoinDividendsDiv = $("#totalSleepCoinDividends");
        totalSleepCoinDividendsDiv.html(statistical.totalSleepCoinDividends);
        var todaySleepCoinDividendsDiv = $("#todaySleepCoinDividends");
        todaySleepCoinDividendsDiv.html(statistical.todaySleepCoinDividends);

//    累计股东活币配发量、今日股东活币配发量
        var totalAliveCoinDividendsDiv = $("#totalAliveCoinDividends");
        totalAliveCoinDividendsDiv.html(statistical.totalAliveCoinDividends);
        var todayAliveCoinDividendsDiv = $("#todayAliveCoinDividends");
        todayAliveCoinDividendsDiv.html(statistical.todayAliveCoinDividends);

//4.累计股东活币释放量、今日股东活币释放量
        var totalAliveReleaseDiv = $("#totalAliveRelease");
        totalAliveReleaseDiv.html(statistical.totalAliveRelease);
        var todayAliveReleaseDiv = $("#todayAliveRelease");
        todayAliveReleaseDiv.html(statistical.todayAliveRelease);


//累计股东休眠币释放量、今日股东休眠币释放量
        var totalSleepReleaseDiv = $("#totalSleepRelease");
        totalSleepReleaseDiv.html(statistical.totalSleepRelease);
        var todaySleppReleaseDiv = $("#todaySleppRelease");
        todaySleppReleaseDiv.html(statistical.todaySleppRelease);

//累计用户活币释放量、今日用户活币释放量
        var totalMemberReleaseDiv = $("#totalMemberRelease");
        totalMemberReleaseDiv.html(statistical.totalMemberRelease);
        var todayMemberReleaseDiv = $("#todayMemberRelease");
        todayMemberReleaseDiv.html(statistical.todayMemberRelease);
    }

    loadSurveyData(statistical);

    function getStatistical() {
        var statistical;
        $.ajax({
            async: false,
            url: '/back/survey/deal/list',
            type: 'get',
            success: function (baseDto) {
                dealBaseDto(baseDto, function (baseDto) {
                    statistical = baseDto.data;
                })
            }
        });
        return statistical;
    }

    var statistical = getStatistical();

    function loadData(statistical) {
//累计用户挂买订单量
        var totalHangBuyOrderDiv = $("#totalHangBuyOrder");
        totalHangBuyOrderDiv.html(statistical.totalHangBuyOrder);
//今日挂买订单量
        var todayHangBuyOrderDiv = $("#todayHangBuyOrder");
        todayHangBuyOrderDiv.html(statistical.todayHangBuyOrder);
//累计挂买量
        var totalHangBuyCountDiv = $("#totalHangBuyCount");
        totalHangBuyCountDiv.html(statistical.totalHangBuyCount);
//今日挂买总量 todayHangBuyCount
        var todayHangBuyCountDiv = $("#todayHangBuyCount");
        todayHangBuyCountDiv.html(statistical.todayHangBuyCount);
// 累计用户挂卖订单量,今日挂卖订单量、累计挂卖总额、今日挂卖总额
        var totalHangSaleOrderDiv = $("#totalHangSaleOrder");
        totalHangSaleOrderDiv.html(statistical.totalHangSaleOrder);
        var todayHangSaleOrderDiv = $("#todayHangSaleOrder");
        todayHangSaleOrderDiv.html(statistical.todayHangSaleOrder);
        var totalHangSaleCountDiv = $("#totalHangSaleCount");
        totalHangSaleCountDiv.html(statistical.totalHangSaleCount);
        var todayHangSaleCountDiv = $("#todayHangSaleCount");
        todayHangSaleCountDiv.html(statistical.todayHangSaleCount);
//累计成交订单量,今日成交订单量、累计成交总额、今日成交总额
        var totalDealOrderDiv = $("#totalDealOrder");
        totalDealOrderDiv.html(statistical.totalDealOrder);
        var todayDealOrderDiv = $("#todayDealOrder");
        todayDealOrderDiv.html(statistical.todayDealOrder);
        var totalDealCountDiv = $("#totalDealCount");
        totalDealCountDiv.html(statistical.totalDealCount);
        var todayDealCountDiv = $("#todayDealCount");
        todayDealCountDiv.html(statistical.todayDealCount);
// 累计回购订单量,今日回购订单量、累计回购总额、今日回购总额
        var totalBackOrderDiv = $("#totalBackOrder");
        totalBackOrderDiv.html(statistical.totalBackOrder);
        var todayBackOrderDiv = $("#todayBackOrder");
        todayBackOrderDiv.html(statistical.todayBackOrder);
        var totalBackCountDiv = $("#totalBackCount");
        totalBackCountDiv.html(statistical.totalBackCount);
        var todayBackCountDiv = $("#todayBackCount");
        todayBackCountDiv.html(statistical.todayBackCount);
//  累计商城交易订单量，今日商城交易订单量,累计商城交易总额，今日商城交易金额
        var totalShopOrderDiv = $("#totalShopOrder");
        totalShopOrderDiv.html(statistical.totalShopOrder);
        var todayShopOderDiv = $("#todayShopOder");
        todayShopOderDiv.html(statistical.todayShopOder);
        var totalShopCountDiv = $("#totalShopCount");
        totalShopCountDiv.html(statistical.totalShopCount);
        var todayShopCountDiv = $("#todayShopCount");
        todayShopCountDiv.html(statistical.todayShopCount);
// 累计查封用户数，今日查封用户数，累计冻结用户数，今日冻结用户数
        var totalSealupCountDiv = $("#totalSealupCount");
        totalSealupCountDiv.html(statistical.totalSealupCount);
        var todaySealupCountDiv = $("#todaySealupCount");
        todaySealupCountDiv.html(statistical.todaySealupCount);
        var totalFrozenCountDiv = $("#totalFrozenCount");
        totalFrozenCountDiv.html(statistical.totalFrozenCount);
        var todayFrozenCountDiv = $("#todayFrozenCount");
        todayFrozenCountDiv.html(statistical.todayFrozenCount);
//     //    近3个月无交易用户数、近1个月无交易用户数、近7天无交易用户数，点击可查看对应会员列表
// Integer noDealThreeMonthCount;
// Integer noDealOneMonthCount;
// Integer noDealSevenDayCount;
        var noDealThreeMonthCountDiv = $("#noDealThreeMonthCount");
        var threeMonth = "<a  style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/survey/deal/threeMonthPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealThreeMonthCount + "</a>";
        noDealThreeMonthCountDiv.html(threeMonth);
        var oneMonth = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/survey/deal/oneMonthPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealOneMonthCount + "</a>";
        var noDealOneMonthCountDiv = $("#noDealOneMonthCount");
        noDealOneMonthCountDiv.html(oneMonth);
        var sevenDay = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/survey/deal/sevenDayPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.noDealSevenDayCount + "</a>";
        var noDealSevenDayCountDiv = $("#noDealSevenDayCount");
        noDealSevenDayCountDiv.html(sevenDay);
//  //    累计注册会员数、已激活注册会员数、未激活注册会员数
// Integer totalRegisterCount;
// Integer activedCount;
// Integer unactiveCount;
        var totalRegisterCountDiv = $("#totalRegisterCount");
        totalRegisterCountDiv.html(statistical.totalRegisterCount);
        var activedCountDiv = $("#activedCount");
        activedCountDiv.html(statistical.activedCount);
        var unactiveCountDiv = $("#unactiveCount");
        unactiveCountDiv.html(statistical.unactiveCount);
    }

    loadData(statistical);
</script>
</html>